<?php

class MSSConfirmacionDTO extends CFormModel
{

	public $message;
	public $result;
	
	public static $CLASS = "com.onlinewebgames.comun.model.MSSConfirmacionDTO";
	private static $ATTRIBUTES = array("message", "result");
	
	
	function toModel($jsonArray){
		$this->message = $jsonArray[$this::$ATTRIBUTES[0]];
		$this->result = $jsonArray[$this::$ATTRIBUTES[1]];
	}
	
	function toJson(){
		
		return array(
				"class"=>$this::$CLASS,
				$this::$ATTRIBUTES[0]=>$this->message,
				$this::$ATTRIBUTES[1]=>$this->result
				);
	}
}
